<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<html>
<head>
<title>Klenwell J.Ini Demo</title>

<!-- Internal Script -->
<script type="text/javascript">
var global_timer_started = 0;
var global_tx0 = 0;
function js_timer() 
{
	if ( !global_timer_started )
	{
		global_timer_started = 1;
		global_tx0 = new Date();
		return;
	}
	else
	{
		var tx_now = new Date();
		return ( tx_now - global_tx0 ) / 1000; 
	}
}

// start timer
js_timer();
</script>

<!-- Load Init Class -->
<script type="text/javascript" src="../jini/class.ini.js"></script>
<script type="text/javascript">
var debug = 0;
var MyClass = new DemoClass(debug);
</script>
<script type="text/javascript">
MyClass.ini();
</script>

<style type="text/css">
body
{
 margin:0; padding:0;
 font-family:sans-serif;
}
h1#page_title
{
 margin:0 0 10px;
 padding:1em;
 color:#ccf;
 border-bottom:1px solid #ccf;
 background: #f3f3ff;
}
#testbed
{
 width:60%; margin:1em auto; padding:1em;
 font-family:monocode;
 border:1px solid #ccc;
}
#footer
{
 clear:both;
 padding:4px;
 font: 11px verdana,sans-serif;
 border:1px solid #ccf;
 border-width:1px 0;
 color:#ccf;
 background: #f3f3ff;
 text-align:center;
}
</style>

</head>
<body>

<h1 id="page_title">Klenwell J.Ini Demo</h1>

<div id="testbed">

<h4>To Call:</h4>
<pre>
&lt;script type="text/javascript" src="jini/class.ini.js"&gt;&lt;/script&gt;
&lt;script type="text/javascript"&gt;
var debug = 0;
var MyClass = new DemoClass(debug);
MyClass.ini();
&lt;/script&gt;
</pre>

<!-- Instantiate Class and Initialize -->
<script type="text/javascript">
var debug = 1;
var J = new DemoClass(debug);
J.ini();
var a_link = '<a href="' + J.dirpath + '">click here to view js files</a>';
document.write("<div>" + a_link + "</div>");
document.write("<h6 style='color:#660000;'>end script</h6>");
</script>

</div>

<!-- Footer -->
<script type="text/javascript">document.write('<div id="footer">js timer: ' +  js_timer() + ' s</div>');</script>

</body>
</html>
